//
//  CaseBaseModel.m
//  HomeFurnishing
//
//  Created by dllo on 16/3/28.
//  Copyright © 2016年 YMing. All rights reserved.
//

#import "CaseBaseModel.h"

@implementation CaseBaseModel

-(void)dealloc
{
    [_title release];
    [_areaShow release];
    [_large release];
    [_typeShow release];
    [_cost release];
    [_styleShow release];
    [_photos release];
    [_coverPhoto release];
    [_userName release];
    [_mId release];
    [_imgArr release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"user"]) {
        self.large = value[@"userImage"][@"large"];
    }
    if ([key isEqualToString:@"user"]) {
        self.userName = value[@"userName"];
    }
    if ([key isEqualToString:@"id"]) {
        self.mId = value;
    }
    if ([key isEqualToString:@"img"]) {
        self.imgArr = value;
    }
}

@end
